<?php

/**
* @current cmsuseralbums.php
* @author   caoqicheng <caoqicheng@haibao.com>
* @date 2017年2月22日 上午9:41:03
*/
namespace haibao\jiepai\model\data\user;

class CmsUserAlbums extends \haibao\jiepai\model\data\Base{
	
	/**
	 * 删除时置为-1，默认是0
	 * 是否是删除
	 */
	const FLAG_IS = 0;
	const FLAG_DEL = -1;
	
	/**
	 * 1为默认相册，不可删除,0为普通相册
	 */
	const ALBUM_DEFAULT = 1;
	const ALBUM_ORDINA = 0;
    
    public $UserID;
    
    public $AlbumName;
    
    public $CreateTime;
    
    public $Flag=0;

    public $Type =0;

    public $IsPrivate = 0;
    
    public function __construct(){
        parent::__construct();
        $this->setColumnName('Id', 'AlbumID');
        
        $this->intField('UserID', 'UserID');
        $this->stringField('AlbumName', 'AlbumName');
        $this->intField('Type', 'Type');
        $this->dateField('CreateTime', 'CreateTime');
        $this->intField('Flag', 'Flag');
        $this->intField('IsPrivate', 'IsPrivate');

        $this->setTableName('cms_user_albums');
    }
}

